package org.sy.lab.网上多线程例子.柜台取钱;

public class Bank {
	
	static int money = 1000;
	
	public void Counter(int money) {
		Bank.money -= money;
		System.out.println("A取走了" + money + "还剩下" + (Bank.money));
	}
	
	public void ATM(int money) {
		Bank.money -= money;
		System.out.println("B取走了" + money + "还剩下" + (Bank.money));
	}
}
